package cn.hou.java.designpattern._15mediator;

public class Test01 {
	
	public static void main(String[] args) {
		Mediator mediator=new Mediator();
		Person yaozhen=new Man("姚振",3,mediator);
		Person heyi=new Man("何毅",3,mediator);
		Person liuye=new Woman("柳烨",3,mediator);
		yaozhen.getMatching(liuye);
		yaozhen.getMatching(heyi);
		yaozhen.getMatching(liuye);
	}
}
